<template>
  <div class="slide">
    <el-carousel height="240px">
      <el-carousel-item v-for="(item,idx) in picList" :key="idx">
        <nuxt-link :to="item.img">
          <img :src="item.url" width="100%" height="100%">
        </nuxt-link>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      picList:[
        {
          img: 'http://hotel.meituan.com/',
          url:'http://p0.meituan.net/codeman/daa73310c9e57454dc97f0146640fd9f69772.jpg'
        },
        {
          img: 'https://bj.meituan.com/meishi/',
          url: 'http://p1.meituan.net/codeman/826a5ed09dab49af658c34624d75491861404.jpg'
        },
        {
          img: 'http://waimai.meituan.com/',
          url: 'http://p0.meituan.net/codeman/a97baf515235f4c5a2b1323a741e577185048.jpg',
        },
        {
          img: 'http://maoyan.com/',
          url: 'http://p0.meituan.net/codeman/33ff80dc00f832d697f3e20fc030799560495.jpg',
        },
        {
          img: 'https://paidui.meituan.com/?activity_code=169_00038142',
          url: 'https://p1.meituan.net/travelcube/01d2ab1efac6e2b7adcfcdf57b8cb5481085686.png'
        }
      ]
    };
  },
  watch: {},
  computed: {},
  methods: {},
  created() {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
</style>